import axiosInstance from '@/api/axiosInstance'
interface systemMessageListParams {
  type?: number
  message_status?: number
  page?: number
  pageSize?: number
  // 其他查询条件...
}

// 获取系统消息列表
export const getSystemMessageList = async (params?: systemMessageListParams) => {
  return axiosInstance.get('/admin/system-message', { params })
}

// 获取系统消息详情
export const getSystemMessageDetail = async (id: number) => {
  return axiosInstance.get(`/admin/system-message/${id}`)
}

// 更新系统消息
export const updateSystemMessage = async (id: number, data: any) => {
  return axiosInstance.put(`/admin/system-message/${id}`, data)
}
